#!/bin/bash
#!/usr/bin/env bash
#proj_raw_name=`pwd`

proj_name="client"
tar  --exclude='node_modules' \
--exclude='.git' \
--exclude='.idea' \
--exclude='apidocs' \
--exclude='*.gz' \
--exclude='*.tar' \
--exclude='*.bz2' \
--exclude='*.pyc' \
--exclude='mp_py/*' \
--exclude='img/*' \
--exclude='servertype.json' \
--exclude='test' \
--exclude='logs' \
--exclude='bower_components' \
-zcvf $proj_name.tar.gz .

scp -P 8821 $proj_name.tar.gz root@101.132.43.51:/home/client/.